file(GLOB_RECURSE SOURCES my_driver/*.c
                          wifi/*.c
                          blufi/*.c
                          logic_handle/*.c
                          mode_Config/*.c
                          key/*.c
                          uart_handle_module/*.c
                          OTA/*.c
                          *.c
                        )

set(include_dirs 
    my_driver
    wifi
    blufi
    logic_handle
    mode_Config
    key
    uart_handle_module
    OTA
    .
    )

#find_package(esp_driver_uart REQUIRED)

idf_component_register(SRCS ${SOURCES}
                    INCLUDE_DIRS ${include_dirs}
                    REQUIRES driver
                    REQUIRES esp_wifi
                    REQUIRES nvs_flash
                    PRIV_REQUIRES bt
                    PRIV_REQUIRES mbedtls
                    REQUIRES driver esp_adc
                    REQUIRES esp_driver_uart
                    REQUIRES esp_driver_spi
                    REQUIRES esp_driver_gpio
                    REQUIRES app_update
                    REQUIRES esp_http_client
                    REQUIRES esp_https_ota
                    )


